{template 'header'}
<link href="{MODULE_URL}template/css/css.css" rel="stylesheet" />
<link href="{MODULE_URL}template/css/stylesheet.css" rel="stylesheet" />
<style type="text/css">
	.notice_content {
    margin: 0px 15px;
    height: 100%;
    overflow: hidden;
    line-height: 20px;
    font-size: 14px;
    color: #363838;
}
</style>
<div class="top_menu">
    详细活动
</div>
<div class="top_menu_shadow"></div>
<div class="row" style="margin-bottom:50px;">
  <div class="col-sm-6 col-md-4">
    <div class="thumbnail">
      <img src="{$_W['attachurl']}{$item['picurl']}" alt="..." >
      <div class="caption">
        <h3>{$item['title']}</h3>
        <p>
        	<table class="table table-bordered">
				<tbody>
					<tr>
						<td width="30%"> <b>活动时间</b>
						</td>
						<td>
							开始时间：
							<span class="text-warning no-tel">{php echo date('Y-m-d',$item['starttime'])}</span>
							<br />
							结束时间：
							<span class="text-warning no-tel">{php echo date('Y-m-d',$item['endtime'])}</span>
						</td>
					</tr>
					<tr>
						<td> <b>报名截止</b>
						</td>
						<td>
							<span class="text-danger no-tel">{$item['enddate']}</span>
						</td>
					</tr>
					<tr>
						<td>
							<b>活动状态</b>
						</td>
						<td>
							<label class="label label-info">{if $_W['timestamp']>$enddate }报名结束...{else}火热报名中...{/if}</label>
						</td>
					</tr>
					<tr>
						<td>
							<b>参与人数</b>
						</td>
						<td>
							<span class="text-danger">{$item['resnumber']}</span>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							{if $_W['timestamp']>$enddate }
				        		<a href="#" class="btn btn-info" role="button" style='width:200px;'>报名结束</a>
				        	{else}
				        		<a href="{php echo $this->createMobileUrl('activity',array('op' => 'res','rid' => $item['id']))}" class="btn btn-warning " role="button" style='width:200px;'>开始报名</a>
				        	{/if}
						</td>
					</tr>
				</tbody>
			</table>
		</p>
		 <div class="panel panel-default">
			  <div class="panel-heading">
			    <h3 class="panel-title">活动详情：</h3>
			  </div>
			  <div class="panel-body">
			  	<div class="notice_content">{$item['content']}</div>
			  </div>
		</div>
      </div>
    </div>
  </div>

</div>

{template 'footer'}